package com.qyl.deguru.service.impl;

import java.util.List;





import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.dao.OrderDao;
import com.qyl.deguru.dao.impl.OrderDaoImpl;
import com.qyl.deguru.dto.Order;
import com.qyl.deguru.dto.User;

import com.qyl.deguru.service.OrderService;


public class OrderServiceImpl implements OrderService {
	OrderDao orderDao = new OrderDaoImpl();

	@Override
	public int getCountByOrder(Order order) {
		
		return orderDao.getCountByOrder(order);
	}

	@Override
	public List<Order> getOrderListByPage(Order order, PageModel pageModel) {
		
		return orderDao.getOrderListByPage(order, pageModel);
	}

	@Override
	public List<Order> getOrderByUser_id(int oid) {
		// TODO Auto-generated method stub
		return orderDao.getOrderByUser_id(oid);
	}

	

	

	
	
}
